using System;
using System.Threading;
using System.Collections.Generic;
using XiaoweiV2.ResponseDataTypes;
using Xiaowei.Services;
using Xiaowei.Settings;
using XiaoweiV2;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using Xiaowei.Diagnostics;
using Xiaowei.Players;
using Xiaowei.Models;
using VoiceAI;

namespace Xiaowei.ResponseHandlers
{
    internal static class DefaultResponseHandler
    {
        public static void Handle(IResponseData responseData)
        {
            if(responseData.ErrorCode== ErrorCode.NoNeedTTS)
            {
                ApplicationModel.Instance.PlayResponseAndSystemTTS("");
            }
            else
            {
                ApplicationModel.Instance.PlayResponseAndSystemTTS(responseData.TTSUrl);
            }
            
        }
    }
}
